		<?
			$worker_states = array('free', 'busy', 'freeing');
		?>
		<div id="sidebar">
			<div class="driver-block">
				<div class="drbl-title">Водители</div>				
				<?
					$data = $mvc->db->get_data('SELECT * FROM workers WHERE LOCATE("2",workplace) > 0');
					foreach($data as $k => $worker)
					{
						echo '<div class="'.$worker_states[rand(0, 2)].'">'.$worker['fio'].'</div>';
					}
				?>
			</div>
			
			<div class="driver-block">
				<div class="drbl-title">Грузчики</div>
				<?
					$data = $mvc->db->get_data('SELECT * FROM workers WHERE LOCATE("4",workplace) > 0');
					foreach($data as $k => $worker)
					{
						echo '<div class="'.$worker_states[rand(0, 2)].'">'.$worker['fio'].'</div>';
					}
				?>
			</div>

			<div class="driver-block">
				<div class="drbl-title">Частники</div>
			</div>
		</div>
